package com.sdlg.service;

import com.sdlg.pojo.BookItem;
import com.sdlg.pojo.Member;
import com.sdlg.pojo.Order;
import com.sdlg.util.PageResult;
import com.sdlg.util.QueryPageBean;
import com.sdlg.util.Result;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface MemberService {
    PageResult findPage(QueryPageBean queryPageBean);

    Result deleteInfoById(Integer id);

    Member login(String username, String password, HttpServletRequest request) throws Exception;

    Result getUserAndRoleInfo(Integer id);

    Result saveUser(Member member);

    Result bookRent(Integer id, Integer bookid,Order order);

    Result getMemberInfo(Integer id);

    Result savePassword(Integer id, @RequestBody Member member);

    Result getMemberAllInfo(Integer id);

    Result saveAllInfo(Member member);

}
